package com.example.onlineeducation.mapper

import com.example.onlineeducation.data.json.ExamRecordListJson
import com.example.onlineeducation.data.json.ScoreRecordListJson
import com.example.onlineeducation.data.model.ExamRecordListDataModel
import com.example.onlineeducation.data.model.ScoreRecordListDataModel
import com.yc.jetpacklib.extension.ycToNoEmpty
import com.yc.jetpacklib.mapper.IMapper

class ScoreRecordListMapper : IMapper<ScoreRecordListJson, ScoreRecordListDataModel> {
    override fun map(input: ScoreRecordListJson): ScoreRecordListDataModel = ScoreRecordListDataModel(
        input.createTime.ycToNoEmpty(),//创建时间
        input.points.ycToNoEmpty(),//积分数
        input.remark.ycToNoEmpty()//积分项
    )
}
